Error Entry
Error context stored in a ValidationResult. This can represent an errored or non-errored state, can include multiple children contexts, and can include non-textual information (see ValidationResult.Errors.ACTION for example)
All Validation Results include an error entry; starting with a NonErrorEntry by default for a successful (non-errored) result.
Author
fzzyhmstrs
Since
0.7.0
Types
A mutable wrapper of an error entry. This is typically used to provide an "entrypoint" for building errors based on a pre-defined header message. Use it with other validation results by calling ValidationResult.attachTo, and then build your final compound result with ValidationResult.ofMutable
Functions
Adds another error entry using ValidationResult.Errors.BASIC as the type, as a child to this one, using the builder to build that entry. Entries are immutable, so the updated entry is returned. The entry this is called on is not changed.
Adds another error entry as a child to this one. Entries are immutable, so the updated entry is returned. The entry this is called on is not changed.
Adds another error entry of the given type as a child to this one, using the builder to build that entry. Entries are immutable, so the updated entry is returned. The entry this is called on is not changed.
Performs the provided consumer action on this and any children entries.
Performs the provided consumer action on this and any children entries if they are of the provided type.
Return the string representation of the logging for this entry without extra styling and type information.
Whether this entry contains a critical error. It will have one or more exceptions attached to it
Whether this entry is loggable. Entries with a non-text type generally aren't.
Provides an Iterable containing this and any children entries.
Provides an Iterable containing this and any children entries as applicable based on the provided type.
Logs this entry with the provided writer
Logs this entry with the provided writer using plain content information
Converts this entry to a Mutable
Performs the provided predicate test on this and any children entries. Generally returns true on the first success.
Performs the provided predicate test on this and any children entries if they are of the provided type. Generally returns true on the first success.